Ext.define("admin.view.accessControl.privilegeRecordListGridView", {
    extend: 'Ext.grid.Panel',
    alias: 'widget.accessControl.privilegeRecordListGridView',
    columns: [{
        text: '卡片编号',
        width: 100,
        sortable: true,
        dataIndex: 'cardSerialNumber'
    }, {
        text: '卡片内码',
        width: 100,
        sortable: true,
        dataIndex: 'cardIdentifier'
    }, {
        text: '用户编号',
        width: 100,
        sortable: true,
        dataIndex: 'cardUserIdentifier'
    }, {
        text: '用户名称',
        width: 150,
        sortable: true,
        dataIndex: 'cardUserName'
    }, {
        text: '设备编号',
        width: 100,
        sortable: true,
        dataIndex: 'deviceIdentifier'
    }, {
        text: '设备名称',
        width: 150,
        sortable: true,
        dataIndex: 'deviceName'
    }, {
        text: '权限状态',
        width: 100,
        sortable: true,
        dataIndex: 'accessControlRecordState'
    }, {
        text: '截止有效期',
        width: 150,
        sortable: true,
        dataIndex: 'validToDateTime'
    }, {
        text: '更新时间',
        width: 150,
        sortable: true,
        dataIndex: 'updateDateTime'
    }, {
        text: '当前状态',
        width: 100,
        sortable: true,
        dataIndex: 'id'
    }],
    selModel: {
        injectCheckbox: 0,
        mode: "SIMPLE",
        checkOnly: true
    },
    selType: "checkboxmodel",
    dockedItems: [{
        xtype: 'pagingtoolbar',
        dock: 'bottom',
        displayInfo: true
    }, {
        xtype: 'toolbar',
        dock: 'top',
        margin: 0,
        items: [{
            iconCls: 'delete_16',
            text:'删除',
            handler: function () {

            }
        }]
    }]
});
